package com.wisdomparking.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.wisdomparking.bean.EcdemicParking;
import com.wisdomparking.bean.simple.SimpleEcdemicParking;
import com.wisdomparking.dao.mapper.EcdemicParkingMapper;

@Component
public class EcdemicParkingDao implements EcdemicParkingMapper {
	
	@Autowired EcdemicParkingMapper ecdemicParkingMapper;
	
	@Transactional
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return ecdemicParkingMapper.deleteByPrimaryKey(id);
	}
	
	@Transactional
	@Override
	public int insert(EcdemicParking record) {
		return ecdemicParkingMapper.insert(record);
	}
	
	@Transactional
	@Override
	public int insertSelective(EcdemicParking record) {
		return ecdemicParkingMapper.insertSelective(record);
	}
	
	@Override
	public EcdemicParking selectByPrimaryKey(Integer id) {
		return ecdemicParkingMapper.selectByPrimaryKey(id);
	}
	
	@Override
	public EcdemicParking selectByName(String name) {
		return ecdemicParkingMapper.selectByName(name);
	}
	
	@Transactional
	@Override
	public int updateByPrimaryKeySelective(EcdemicParking record) {
		return ecdemicParkingMapper.updateByPrimaryKeySelective(record);
	}
	
	@Transactional
	@Override
	public int updateByPrimaryKey(EcdemicParking record) {
		return ecdemicParkingMapper.updateByPrimaryKey(record);
	}
	
	@Override
	public List<EcdemicParking> getEcdemicParkingList(Map<String, Object> map) {
		return ecdemicParkingMapper.getEcdemicParkingList(map);
	}

	@Override
	public long getCountByEcdemicParking(Map<String, Object> map) {
		return ecdemicParkingMapper.getCountByEcdemicParking(map);
	}
	
	@Override
	public List<SimpleEcdemicParking> getDistanceEcdemicParking(Map<String, Object> map){
		return ecdemicParkingMapper.getDistanceEcdemicParking(map);
	}

}
